﻿/*
 * Item.cs
 * 
 * Represents an item in a drawer in the supply room, stores
 * only the name of the item
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Supply_Fetch
{
    public class Item
    {
        private String name;

        /// <summary>
        /// Return the name of the item
        /// </summary>
        /// <returns>item name</returns>
        public String GetName()
        {
            return name;
        }

        /// <summary>
        /// Return the name of the item, for debugging
        /// </summary>
        /// <returns>item name</returns>
        public String ToString()
        {
            return GetName();
        }

        /// <summary>
        /// Item constructor
        /// </summary>
        /// <param name="name">item name</param>
        public Item(String name)
        {
            this.name = name;
        }
    }
}
